package com.nineclock.system.SysCompanyContactConfigController;

import afu.org.checkerframework.checker.units.qual.A;
import com.nineclock.common.entity.Result;
import com.nineclock.message.dto.SysAllowedJoinCompanyUserDTO;
import com.nineclock.system.dto.SysApplyJoinCompanyUserDTO;
import com.nineclock.system.dto.SysChangeMainManagerDTO;
import com.nineclock.system.dto.SysCompanyDTO;
import com.nineclock.system.dto.SysCompanyUserDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Api(value = "企业基本信息配置",tags ="系统服务")
public interface SysCompanyControllerApi {

    @ApiOperation(value = "查看企业基本信息")
    public Result<SysCompanyDTO> querySysCompanyInfo();

    @ApiOperation(value = "上传企业Logo")
    public Result<String> uploadCompanyLogo(MultipartFile file) throws IOException;

    @ApiOperation(value = "更新企业修改的基本信息")
    public Result updateCompanyInfo(SysCompanyDTO sysCompanyDTO);

    @ApiOperation("获取当前企业管理员")
    public Result<SysCompanyUserDTO> getCurrentAdmin();

    @ApiOperation("更改企业管理员")
    public Result updateChangeMainManagerAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);


    @ApiOperation("根据关键字查询企业")
    public Result<List<SysCompanyDTO>> queryCompanyByName(String keyword);

    @ApiOperation("加入企业审核")
    public Result applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    @ApiOperation("加入企业审核")
    public Result allowedJoinCompany(SysAllowedJoinCompanyUserDTO allowedJoinCompanyUserDTO);

}
